package com.shop.cloud.domain.hongfu;

import io.swagger.annotations.ApiModelProperty;

import java.sql.Timestamp;

import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.shop.cloud.common.mybatis.BaseEntity;

/**
 * 
 * sys_log-日志
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class Log extends BaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 操作人id
	 */
	@ApiModelProperty(value = "操作人id")
	 private Long userId;
	/**
	 * 0-操作成功   1-操作失败
	 */
	@ApiModelProperty(value = "0-操作成功   1-操作失败")
	 private Integer state;
	/**
	 * 操作内容
	 */
	@ApiModelProperty(value = "操作内容")
	 private String content;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")	
	 private Timestamp createTime;
	
	//开始时间
	private Timestamp startTime;
	
	//结束时间
	private Timestamp endTime;
	
	private String userName;
	
	private Long[] userIds;
	
	private Integer authorityNow;

	public Integer getAuthorityNow() {
		return authorityNow;
	}

	public void setAuthorityNow(Integer authorityNow) {
		this.authorityNow = authorityNow;
	}

	public Long[] getUserIds() {
		return userIds;
	}

	public void setUserIds(Long[] userIds) {
		this.userIds = userIds;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Timestamp getStartTime() {
		return startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public Log(){
    
    }
    
    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }
    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

}